from masonite.routes import Route
from masonite.authentication import Auth

ROUTES = [Route.get("/", "WelcomeController@show"),
          # Blog Routes
          Route.get('/blog', 'BlogController@show'),
          # 新加的  创建的路哟
          Route.post('/blog/create', 'BlogController@store'),
          Route.get('/posts', 'PostController@show'),
          Route.get('/post/@id', 'PostController@single'),
          Route.get('/post/@id/update', 'PostController@update'),
          Route.post('/post/@id/update', 'PostController@store'),
          Route.get('/post/@id/delete', 'PostController@delete'),
          ]

ROUTES += Auth.routes()
